import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import QuestionnaireDetails from '@/components/QuestionnaireDetails'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
Vue.use(Router)
Vue.use(iView)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    { path: '/Questionnaire/:id', name: 'Questionnaire', component: QuestionnaireDetails }
  ]
})
